import {createBrowserRouter} from 'react-router-dom'
import { lazy } from 'react'
import Login from '../pages/login/Index'
import Error from '../pages/404/Index'
import Layout from '../pages/layout/Index'

let routes=createBrowserRouter([
    {
        path:'/',
        element:<Layout></Layout>
    },
    {
        path:'/login',
        element:<Login></Login>
    },
    {
        path:'*',
        element:<Error></Error>
    }
])

export default routes